'Declaration
Public Function New( _ ByVal fromStreamFunction As Func(Of Stream,ValueResult(Of TValue)), _ ByVal streamResourceHandler As IInformationResourceHandler(Of Stream) _ )
'Usage
Dim fromStreamFunction As Func(Of Stream,ValueResult(Of TValue)) Dim streamResourceHandler As IInformationResourceHandler(Of Stream) Dim instance As New StreamLoader(Of TValue)(fromStreamFunction, streamResourceHandler)
public StreamLoader<TValue>( Func<Stream,ValueResult<TValue>> fromStreamFunction, IInformationResourceHandler<Stream> streamResourceHandler )
public: StreamLoader<TValue>( Func<Stream^,ValueResult<TValue^>^>^ fromStreamFunction, IInformationResourceHandler<Stream^>^ streamResourceHandler )
Parameters
- fromStreamFunction
- The function that reads the value from the stream.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - streamResourceHandler
- Information resource handler for the stream.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).